package com.example.job.domain.exam;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import com.example.core.domain.entity.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
*
* @author 49940
* @date 2024年01月22日 18:09:26
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_user_submit")
public class UserSubmit extends BaseEntity {
    
	@TableId(value = "SUBMIT_ID", type = IdType.ASSIGN_ID)
	@JsonSerialize(using = ToStringSerializer.class)
	@Schema(description = "提交记录id")
	private Long submitId;

	@Schema(description = "用户id")
	private Long userId;

	@Schema(description = "竞赛id")
	private Long examId;

	@Schema(description = "题目id")
	private Long questionId;

	@Schema(description = "编程语言类型（0 java 1 C++）")
	private Integer programType;

	@Schema(description = "用户代码")
	private String userCode;

	@Schema(description = "得分")
	private Integer score;
}